// app.js
App({
  nickName: "",
  avatarUrl: "",
  onLaunch() {
    this.nickName = wx.getStorageSync("nickName"),
      this.avatarUrl = wx.getStorageSync('avatarUrl')
  },
  changeNickName(nickName) {
    this.nickName = nickName;
    wx.setStorageSync("nickName", nickName);
  },
})